package com.lanfan.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Notes {
    private Integer noteId;

    private Integer userId;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date publishTime;

    private String imagePath;

    private String content;

    public Integer getNoteId() {
        return noteId;
    }

    public void setNoteId(Integer noteId) {
        this.noteId = noteId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", noteId=").append(noteId);
        sb.append(", userId=").append(userId);
        sb.append(", publishTime=").append(publishTime);
        sb.append(", imagePath=").append(imagePath);
        sb.append(", content=").append(content);
        sb.append("]");
        return sb.toString();
    }
}